Script: --on mouseUp wdID,wdName,objNo,objName,objValue┬get wsGet("New Detail","Name","Text")┬put it into tt┬get wsGet("New Detail","createNum","text")┬put it into cn┬if tt = empty then┬ if cn>0 then makelists┬ wsSend "New Detail","0","Close"┬else┬ answer "You haven╒t finished the creation of ╥"&tt&"╙." with "skip it" or "OK"┬ if it="skip it" then┬ if cn>0 then makelists┬ wsSend "New Detail","0","Close"┬ end if┬end if┬--end mouseUp
Script: --on mouseUp wdID,wdName,objNo,objName,objValue┬put WSTopLeft(320,109) into TL3┬get wsGet("New Detail","Type","value")┬put it into typerrr┬put windowScript ("New Category",typerrr,TL3) into resulter┬unlock screen┬if line 1 of resulter = "closebox" then -- via OK script┬ put line 3 of resulter into typerrr┬ if typerrr="asset" then┬ put (fld "catListA" of cd 1) into temp┬ else┬ put (fld "catListL" of cd 1) into temp┬ end if┬ wsSet "New Detail","Type","SelectionText",typerrr┬ wsSet "New Detail","theChoices","text",temp┬end if┬--end mouseUp
ItemType: LBL
Rect: 5,60,43,76
Text: Type:
ItemType: POP
Rect: 40,61,132,79
AutoSize: FALSE
Name: Type
Text: Asset┬Liability
Script: --on mouseUp wdID,wdName,objNo,objName,objValue┬if objValue="asset" then┬ put (fld "catListA" of cd 1) into temp┬else┬ put (fld "catListL" of cd 1) into temp┬end if┬wsSet wdID,"theChoices","text",temp┬--end mouseUp┬
Text: Click on this list to choose a category for the new detail
ItemType: TEXT
Rect: 1,45,293,57
TextFont: Geneva
TextSize: 9
Name: instructions4
Text: If desired, adjust the type or format with these pop-up buttons:
ItemType: LBL
Rect: 22,154,93,166
TextFont: Geneva
TextSize: 9
Text: details created
ItemType: TEXT
Rect: 6,154,19,166
TextFont: Geneva
TextSize: 9
AutoSize: FALSE
Name: createNum
TextStyle: Bold
TextAlign: Right
Text: 0
ItemType: LINE
Rect: 8,205,315,206
ItemType: TEXT
Rect: 6,208,320,273
TextFont: Geneva
TextSize: 9
AutoSize: FALSE
Name: Instructions5
Text: After you have entered the name, chosen the type and format from the pop-up menus and clicked on a category, click ╥OK╙ to register the new detail. Click ╥New Category╙ to create a new category to choose from. Click ╥Done╙ when you are finished creating new details for this session.